﻿using System;
using System.Collections.Generic;
using ExpenseSystem.Common.BaseModel;

namespace ExpenseSystem.Model
{
    [TableName("SAM_CUSTOMERHISTORY")]
    public class CustomerHistoryModel:NormalModel
    {
        private string _note;
        private long _customerid;
        private long _salesid;
        private int _type;
        public string _date;
        public virtual string Note
        {
            get { return _note; }
            set
            {
                if (_note == value)
                    return;
                _note = value;
                if (!PropertyUpdated.Contains("Note"))
                    PropertyUpdated.Add("Note");
            }
        }
        public virtual string Date
        {
            get { return _date; }
            set
            {
                if (_date == value)
                    return;
                _date = value;
                if (!PropertyUpdated.Contains("Date"))
                    PropertyUpdated.Add("Date");
            }
        }
        public virtual int Type
        {
            get { return _type; }
            set
            {
                if (_type == value)
                    return;
                _type = value;
                if (!PropertyUpdated.Contains("Type"))
                    PropertyUpdated.Add("Type");
            }
        }
        public virtual long CustomerId
        {
            get { return _customerid; }
            set
            {
                if (_customerid == value)
                    return;
                _customerid = value;
                if (!PropertyUpdated.Contains("CustomerId"))
                    PropertyUpdated.Add("CustomerId");
            }
        }
        public virtual long SalesId
        {
            get { return _salesid; }
            set
            {
                if (_salesid == value)
                    return;
                _salesid = value;
                if (!PropertyUpdated.Contains("SalesId"))
                    PropertyUpdated.Add("SalesId");
            }
        }
    }
}
